#ifndef _FTPHANDLER_HPP
#define _FTPHANDLER_HPP

#include "iservice.hpp"
#include "ftppool.hpp"
#include <string>
#include "datacollection.hpp"


namespace com_oocl_riley {

    class FtpHandler:public IService<string,DataCollection> {
    public:
        explicit FtpHandler(FtpPool &pool);
        ~FtpHandler();
        virtual DataCollection* perform(string*);

    private:
        static size_t write_fun(char * buff, size_t size, size_t nmenb, void * data);
    private:
        FtpPool &_pool;
    };

}

#endif // _FTPHANDLER_HPP
